home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 11 / develop Issue 11 code / Graphical Truffles.sea / Graphical Truffles / Blasto code / Blasto.c < prev    next >
MacBinary  |  1992-11-16  |  4.3 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Nov 16 16:41:21 1992, modified Mon Nov 16 16:41:21 1992, creator 'MPS ', type ASCII, 3704 bytes "Blasto.c" , at 0xef8 480 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 42 6c 61 73 74 6f | 2e 63 00 00 00 00 00 00 |..Blasto|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 0e 78 00 | 00 01 e0 a7 2d c6 01 a7 |......x.|....-...|
|00000060| 2d c6 01 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |-.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ed e7 00 00 |........|........|
|00000080| 2f 2a 0d 09 42 6c 61 73 | 74 6f 0d 09 41 20 73 6d |/*..Blas|to..A sm|
|00000090| 61 6c 6c 20 70 72 6f 67 | 72 61 6d 20 74 68 61 74 |all prog|ram that|
|000000a0| 20 62 6c 61 73 74 73 20 | 61 6e 20 38 20 62 69 74 | blasts |an 8 bit|
|000000b0| 20 63 6f 6c 6f 72 20 69 | 63 6f 6e 20 74 6f 20 74 | color i|con to t|
|000000c0| 68 65 20 73 63 72 65 65 | 6e 2e 0d 09 33 2d 36 2d |he scree|n...3-6-|
|000000d0| 39 32 20 09 09 42 79 20 | 42 72 69 67 68 61 6d 20 |92 ..By |Brigham |
|000000e0| 53 74 65 76 65 6e 73 0d | 09 09 09 09 41 70 70 6c |Stevens.|....Appl|
|000000f0| 65 20 44 65 76 65 6c 6f | 70 65 72 20 54 65 63 68 |e Develo|per Tech|
|00000100| 6e 69 63 61 6c 20 53 75 | 70 70 6f 72 74 0d 09 33 |nical Su|pport..3|
|00000110| 2d 31 33 2d 39 32 09 2d | 20 42 52 53 20 2d 20 55 |-13-92.-| BRS - U|
|00000120| 68 20 4f 68 2c 20 69 74 | 27 73 20 46 72 69 64 61 |h Oh, it|'s Frida|
|00000130| 79 20 74 68 65 20 31 33 | 74 68 0d 09 09 09 09 43 |y the 13|th.....C|
|00000140| 6c 65 61 6e 65 64 20 75 | 70 20 26 20 63 6f 6d 6d |leaned u|p & comm|
|00000150| 65 6e 74 65 64 20 63 6f | 64 65 20 68 65 72 65 20 |ented co|de here |
|00000160| 61 6e 64 20 74 68 65 72 | 65 2e 0d 09 34 2d 31 33 |and ther|e...4-13|
|00000170| 2d 39 32 20 2d 20 42 52 | 53 20 2d 20 63 68 61 6e |-92 - BR|S - chan|
|00000180| 67 65 64 20 69 63 6f 6e | 20 74 6f 20 62 65 20 73 |ged icon| to be s|
|00000190| 65 6c 66 2d 65 72 61 73 | 69 6e 67 0d 09 09 09 09 |elf-eras|ing.....|
|000001a0| 4d 61 64 65 20 63 6f 64 | 65 20 73 6f 6d 65 77 68 |Made cod|e somewh|
|000001b0| 61 74 20 62 65 74 74 65 | 72 20 62 79 20 63 68 61 |at bette|r by cha|
|000001c0| 6e 67 69 6e 67 20 6e 61 | 6d 65 73 20 61 6e 64 20 |nging na|mes and |
|000001d0| 73 74 75 66 66 2e 0d 09 | 09 09 09 41 64 64 65 64 |stuff...|...Added|
|000001e0| 20 63 6f 6d 6d 65 6e 74 | 73 0d 09 34 2d 32 34 2d | comment|s..4-24-|
|000001f0| 39 32 20 2d 20 42 52 53 | 20 2d 20 41 64 64 65 64 |92 - BRS| - Added|
|00000200| 20 69 66 64 65 66 73 20 | 61 72 6f 75 6e 64 20 74 | ifdefs |around t|
|00000210| 69 6d 69 6e 67 20 63 6f | 64 65 2c 20 63 68 61 6e |iming co|de, chan|
|00000220| 67 65 64 20 6e 61 6d 65 | 73 20 61 67 61 69 6e 2e |ged name|s again.|
|00000230| 0d 09 31 31 2d 31 31 2d | 39 32 20 2d 20 42 52 53 |..11-11-|92 - BRS|
|00000240| 20 2d 20 6d 61 64 65 20 | 61 20 54 48 49 4e 4b 20 | - made |a THINK |
|00000250| 43 20 70 72 6f 6a 65 63 | 74 20 66 69 6c 65 2c 20 |C projec|t file, |
|00000260| 61 6e 64 20 6d 61 64 65 | 20 74 68 69 73 20 63 6f |and made| this co|
|00000270| 64 65 20 77 6f 72 6b 20 | 77 69 74 68 20 0d 09 09 |de work |with ...|
|00000280| 09 09 09 54 48 49 4e 4b | 20 43 2e 20 20 41 6c 73 |...THINK| C. Als|
|00000290| 6f 20 63 68 61 6e 67 65 | 64 20 74 68 65 20 64 61 |o change|d the da|
|000002a0| 74 65 20 69 6e 20 74 68 | 65 20 63 6f 6d 6d 65 6e |te in th|e commen|
|000002b0| 74 20 61 62 6f 76 65 2e | 0d 2a 2f 0d 0d 23 69 66 |t above.|.*/..#if|
|000002c0| 6e 64 65 66 20 54 48 49 | 4e 4b 5f 43 0d 23 69 6e |ndef THI|NK_C.#in|
|000002d0| 63 6c 75 64 65 20 3c 4f | 53 55 74 69 6c 73 2e 68 |clude <O|SUtils.h|
|000002e0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 57 69 6e 64 |>.#inclu|de <Wind|
|000002f0| 6f 77 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ows.h>.#|include |
|00000300| 3c 51 44 4f 66 66 73 63 | 72 65 65 6e 2e 68 3e 0d |<QDOffsc|reen.h>.|
|00000310| 23 69 6e 63 6c 75 64 65 | 20 3c 52 65 74 72 61 63 |#include| <Retrac|
|00000320| 65 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 4d |e.h>.#in|clude <M|
|00000330| 65 6d 6f 72 79 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |emory.h>|.#includ|
|00000340| 65 20 3c 52 65 73 6f 75 | 72 63 65 73 2e 68 3e 0d |e <Resou|rces.h>.|
|00000350| 23 69 6e 63 6c 75 64 65 | 20 3c 45 76 65 6e 74 73 |#include| <Events|
|00000360| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 4d 65 |.h>.#inc|lude <Me|
|00000370| 6e 75 73 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |nus.h>.#|endif..#|
|00000380| 69 6e 63 6c 75 64 65 20 | 22 44 69 72 65 63 74 53 |include |"DirectS|
|00000390| 63 72 65 65 6e 2e 68 22 | 0d 0d 76 6f 69 64 20 49 |creen.h"|..void I|
|000003a0| 6e 69 74 54 6f 6f 6c 42 | 6f 78 28 73 68 6f 72 74 |nitToolB|ox(short|
|000003b0| 20 6e 75 6d 4d 6f 72 65 | 4d 61 73 74 65 72 73 29 | numMore|Masters)|
|000003c0| 3b 0d 0d 2f 2a 20 41 6d | 6f 75 6e 74 20 74 6f 20 |;../* Am|ount to |
|000003d0| 6d 6f 76 65 20 69 63 6f | 6e 73 20 74 68 65 73 65 |move ico|ns these|
|000003e0| 20 6e 65 65 64 20 74 6f | 20 62 65 20 61 72 6f 75 | need to| be arou|
|000003f0| 6e 64 20 31 20 6f 72 20 | 32 09 2a 2f 0d 2f 2a 09 |nd 1 or |2.*/./*.|
|00000400| 6f 72 20 6f 75 72 20 69 | 63 6f 6e 20 77 69 6c 6c |or our i|con will|
|00000410| 20 6e 6f 74 20 62 65 20 | 73 65 6c 66 20 65 72 61 | not be |self era|
|00000420| 73 69 6e 67 20 2a 2f 0d | 23 64 65 66 69 6e 65 20 |sing */.|#define |
|00000430| 52 4f 57 5f 4f 46 46 09 | 31 0d 23 64 65 66 69 6e |ROW_OFF.|1.#defin|
|00000440| 65 20 43 4f 4c 5f 4f 46 | 46 20 31 0d 0d 23 64 65 |e COL_OF|F 1..#de|
|00000450| 66 69 6e 65 20 4d 41 58 | 5f 53 45 43 4f 4e 44 53 |fine MAX|_SECONDS|
|00000460| 20 31 30 30 0d 0d 23 69 | 66 6e 64 65 66 20 54 48 | 100..#i|fndef TH|
|00000470| 49 4e 4b 5f 43 0d 76 6f | 69 64 20 53 68 6f 77 52 |INK_C.vo|id ShowR|
|00000480| 65 73 75 6c 74 28 6c 6f | 6e 67 20 66 72 61 6d 65 |esult(lo|ng frame|
|00000490| 43 6f 75 6e 74 29 3b 0d | 6c 6f 6e 67 20 41 76 65 |Count);.|long Ave|
|000004a0| 72 61 67 65 54 61 62 6c | 65 28 6c 6f 6e 67 20 2a |rageTabl|e(long *|
|000004b0| 74 61 62 2c 20 73 68 6f | 72 74 20 63 6f 75 6e 74 |tab, sho|rt count|
|000004c0| 29 3b 0d 23 65 6e 64 69 | 66 0d 0d 76 6f 69 64 20 |);.#endi|f..void |
|000004d0| 6d 61 69 6e 28 29 0d 7b | 0d 09 57 69 6e 64 6f 77 |main().{|..Window|
|000004e0| 50 74 72 09 09 64 69 72 | 65 63 74 57 69 6e 64 6f |Ptr..dir|ectWindo|
|000004f0| 77 3b 0d 09 47 72 61 66 | 50 6f 72 74 09 09 6b 69 |w;..Graf|Port..ki|
|00000500| 6c 6c 4d 65 6e 75 42 61 | 72 3b 0d 09 52 65 63 74 |llMenuBa|r;..Rect|
|00000510| 09 09 09 73 63 72 65 65 | 6e 52 65 63 74 3b 0d 09 |...scree|nRect;..|
|00000520| 47 44 48 61 6e 64 6c 65 | 09 09 6d 61 69 6e 53 63 |GDHandle|..mainSc|
|00000530| 72 65 65 6e 3b 0d 09 50 | 69 78 4d 61 70 48 61 6e |reen;..P|ixMapHan|
|00000540| 64 6c 65 09 6d 61 69 6e | 73 63 72 65 65 6e 50 69 |dle.main|screenPi|
|00000550| 78 4d 61 70 3b 0d 09 48 | 61 6e 64 6c 65 09 09 09 |xMap;..H|andle...|
|00000560| 63 6f 6c 6f 72 49 63 6f | 6e 48 61 6e 64 6c 65 3b |colorIco|nHandle;|
|00000570| 0d 09 50 6f 69 6e 74 09 | 09 09 70 6c 6f 74 4c 6f |..Point.|..plotLo|
|00000580| 63 61 74 69 6f 6e 3b 0d | 09 73 68 6f 72 74 09 09 |cation;.|.short..|
|00000590| 09 76 44 65 6c 74 61 20 | 3d 20 52 4f 57 5f 4f 46 |.vDelta |= ROW_OF|
|000005a0| 46 3b 0d 09 73 68 6f 72 | 74 09 09 09 68 44 65 6c |F;..shor|t...hDel|
|000005b0| 74 61 20 3d 20 43 4f 4c | 5f 4f 46 46 3b 0d 09 6c |ta = COL|_OFF;..l|
|000005c0| 6f 6e 67 09 09 09 66 72 | 61 6d 65 43 6f 75 6e 74 |ong...fr|ameCount|
|000005d0| 3b 0d 09 6c 6f 6e 67 09 | 09 09 2a 74 69 63 6b 73 |;..long.|..*ticks|
|000005e0| 20 3d 20 28 6c 6f 6e 67 | 2a 29 30 78 31 36 41 3b | = (long|*)0x16A;|
|000005f0| 0d 09 6c 6f 6e 67 09 09 | 09 62 65 66 6f 72 65 54 |..long..|.beforeT|
|00000600| 69 63 6b 73 3b 09 0d 09 | 6c 6f 6e 67 09 09 09 74 |icks;...|long...t|
|00000610| 69 63 6b 54 61 62 6c 65 | 5b 4d 41 58 5f 53 45 43 |ickTable|[MAX_SEC|
|00000620| 4f 4e 44 53 5d 3b 0d 09 | 73 68 6f 72 74 09 09 09 |ONDS];..|short...|
|00000630| 74 69 63 6b 49 6e 64 65 | 78 20 3d 20 30 3b 0d 0d |tickInde|x = 0;..|
|00000640| 09 2f 2a 20 53 74 61 6e | 64 61 72 64 20 57 69 74 |./* Stan|dard Wit|
|00000650| 63 68 20 43 68 61 6e 74 | 20 65 6e 63 6c 6f 73 65 |ch Chant| enclose|
|00000660| 64 2e 2e 2e 20 2a 2f 0d | 09 49 6e 69 74 54 6f 6f |d... */.|.InitToo|
|00000670| 6c 42 6f 78 28 34 29 3b | 09 09 2f 2a 20 34 20 63 |lBox(4);|../* 4 c|
|00000680| 61 6c 6c 73 20 74 6f 20 | 4d 6f 72 65 4d 61 73 74 |alls to |MoreMast|
|00000690| 65 72 73 20 2a 2f 0d 0d | 09 2f 2a 20 67 65 74 20 |ers */..|./* get |
|000006a0| 61 20 68 61 6e 64 6c 65 | 20 74 6f 20 74 68 65 20 |a handle| to the |
|000006b0| 63 6f 6c 6f 72 20 69 63 | 6f 6e 20 77 65 20 61 72 |color ic|on we ar|
|000006c0| 65 20 64 72 61 77 69 6e | 67 20 2a 2f 0d 09 63 6f |e drawin|g */..co|
|000006d0| 6c 6f 72 49 63 6f 6e 48 | 61 6e 64 6c 65 20 3d 20 |lorIconH|andle = |
|000006e0| 47 65 74 52 65 73 6f 75 | 72 63 65 28 27 69 63 6c |GetResou|rce('icl|
|000006f0| 38 27 2c 31 32 38 29 3b | 0d 09 69 66 28 21 63 6f |8',128);|..if(!co|
|00000700| 6c 6f 72 49 63 6f 6e 48 | 61 6e 64 6c 65 29 20 7b |lorIconH|andle) {|
|00000710| 0d 09 09 53 79 73 42 65 | 65 70 28 35 29 3b 0d 09 |...SysBe|ep(5);..|
|00000720| 09 44 65 62 75 67 53 74 | 72 28 22 5c 70 42 75 69 |.DebugSt|r("\pBui|
|00000730| 6c 64 20 70 72 6f 62 6c | 65 6d 73 3a 20 27 69 63 |ld probl|ems: 'ic|
|00000740| 6c 38 27 20 6e 6f 74 20 | 6c 6f 61 64 65 64 2e 22 |l8' not |loaded."|
|00000750| 29 3b 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 7d 0d |);...ret|urn;..}.|
|00000760| 0d 09 2f 2a 20 63 6f 76 | 65 72 20 75 70 20 74 68 |../* cov|er up th|
|00000770| 65 20 70 61 72 74 20 6f | 66 20 74 68 65 20 73 63 |e part o|f the sc|
|00000780| 72 65 65 6e 20 77 65 20 | 61 72 65 20 77 72 69 74 |reen we |are writ|
|00000790| 69 6e 67 20 6f 6e 20 2a | 2f 0d 09 2f 2a 20 77 69 |ing on *|/../* wi|
|000007a0| 74 68 20 61 20 77 69 6e | 64 6f 77 2c 20 73 6f 20 |th a win|dow, so |
|000007b0| 6f 74 68 65 72 20 61 70 | 70 73 20 77 69 6c 6c 20 |other ap|ps will |
|000007c0| 6e 6f 74 20 6d 65 73 73 | 20 77 69 74 68 20 6f 75 |not mess| with ou|
|000007d0| 72 20 2a 2f 0d 09 2f 2a | 20 61 6e 69 6d 61 74 69 |r */../*| animati|
|000007e0| 6f 6e 20 76 69 61 20 75 | 70 64 61 74 65 20 65 76 |on via u|pdate ev|
|000007f0| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 62 61 63 6b |ents in |the back|
|00000800| 67 72 6f 75 6e 64 20 2a | 2f 0d 09 73 63 72 65 65 |ground *|/..scree|
|00000810| 6e 52 65 63 74 20 3d 20 | 71 64 2e 73 63 72 65 65 |nRect = |qd.scree|
|00000820| 6e 42 69 74 73 2e 62 6f | 75 6e 64 73 3b 0d 09 64 |nBits.bo|unds;..d|
|00000830| 69 72 65 63 74 57 69 6e | 64 6f 77 20 3d 20 4e 65 |irectWin|dow = Ne|
|00000840| 77 57 69 6e 64 6f 77 28 | 6e 69 6c 2c 26 73 63 72 |wWindow(|nil,&scr|
|00000850| 65 65 6e 52 65 63 74 2c | 6e 69 6c 2c 74 72 75 65 |eenRect,|nil,true|
|00000860| 2c 70 6c 61 69 6e 44 42 | 6f 78 2c 6e 69 6c 2c 66 |,plainDB|ox,nil,f|
|00000870| 61 6c 73 65 2c 30 4c 29 | 3b 0d 0d 09 2f 2a 20 54 |alse,0L)|;.../* T|
|00000880| 68 69 73 20 63 6f 76 65 | 72 73 20 75 70 20 74 68 |his cove|rs up th|
|00000890| 65 20 6d 65 6e 75 20 62 | 61 72 20 2a 2f 0d 09 2f |e menu b|ar */../|
|000008a0| 2a 20 61 6e 64 20 66 69 | 6c 6c 73 20 74 68 65 20 |* and fi|lls the |
|000008b0| 73 63 72 65 65 6e 20 77 | 69 74 68 20 77 68 69 74 |screen w|ith whit|
|000008c0| 65 20 2a 2f 0d 09 4f 70 | 65 6e 50 6f 72 74 28 28 |e */..Op|enPort((|
|000008d0| 47 72 61 66 50 74 72 29 | 26 6b 69 6c 6c 4d 65 6e |GrafPtr)|&killMen|
|000008e0| 75 42 61 72 29 3b 0d 09 | 45 72 61 73 65 52 65 63 |uBar);..|EraseRec|
|000008f0| 74 28 26 6b 69 6c 6c 4d | 65 6e 75 42 61 72 2e 70 |t(&killM|enuBar.p|
|00000900| 6f 72 74 52 65 63 74 29 | 3b 0d 09 0d 09 2f 2a 20 |ortRect)|;..../* |
|00000910| 67 65 74 20 74 68 65 20 | 6d 61 69 6e 20 73 63 72 |get the |main scr|
|00000920| 65 65 6e 27 73 20 50 69 | 78 20 6d 61 70 20 2a 2f |een's Pi|x map */|
|00000930| 0d 09 2f 2a 20 57 68 69 | 63 68 20 74 68 69 73 20 |../* Whi|ch this |
|00000940| 70 72 6f 67 72 61 6d 20 | 65 78 70 65 63 74 73 20 |program |expects |
|00000950| 74 6f 20 62 65 20 38 20 | 62 69 74 73 20 64 65 65 |to be 8 |bits dee|
|00000960| 70 20 2a 2f 0d 09 6d 61 | 69 6e 53 63 72 65 65 6e |p */..ma|inScreen|
|00000970| 20 3d 20 47 65 74 4d 61 | 69 6e 44 65 76 69 63 65 | = GetMa|inDevice|
|00000980| 28 29 3b 0d 09 6d 61 69 | 6e 73 63 72 65 65 6e 50 |();..mai|nscreenP|
|00000990| 69 78 4d 61 70 20 3d 20 | 28 2a 2a 6d 61 69 6e 53 |ixMap = |(**mainS|
|000009a0| 63 72 65 65 6e 29 2e 67 | 64 50 4d 61 70 3b 0d 09 |creen).g|dPMap;..|
|000009b0| 09 09 0d 09 2f 2a 20 53 | 65 74 20 75 70 20 61 20 |..../* S|et up a |
|000009c0| 73 61 66 65 20 72 65 63 | 74 61 6e 67 6c 65 20 66 |safe rec|tangle f|
|000009d0| 6f 72 20 62 6f 75 6e 63 | 69 6e 67 20 6f 66 66 20 |or bounc|ing off |
|000009e0| 74 68 65 20 73 63 72 65 | 65 6e 20 2a 2f 0d 09 73 |the scre|en */..s|
|000009f0| 63 72 65 65 6e 52 65 63 | 74 2e 74 6f 70 20 3d 20 |creenRec|t.top = |
|00000a00| 34 3b 0d 09 73 63 72 65 | 65 6e 52 65 63 74 2e 6c |4;..scre|enRect.l|
|00000a10| 65 66 74 20 3d 20 34 3b | 0d 09 73 63 72 65 65 6e |eft = 4;|..screen|
|00000a20| 52 65 63 74 2e 62 6f 74 | 74 6f 6d 20 2d 3d 20 33 |Rect.bot|tom -= 3|
|00000a30| 32 3b 0d 09 73 63 72 65 | 65 6e 52 65 63 74 2e 72 |2;..scre|enRect.r|
|00000a40| 69 67 68 74 20 2d 3d 20 | 33 32 3b 0d 0d 0d 09 2f |ight -= |32;..../|
|00000a50| 2a 20 6c 6f 6f 70 20 75 | 6e 74 69 6c 20 74 68 65 |* loop u|ntil the|
|00000a60| 20 6d 6f 75 73 65 20 69 | 73 20 63 6c 69 63 6b 65 | mouse i|s clicke|
|00000a70| 64 20 2a 2f 0d 09 2f 2a | 20 64 72 61 77 69 6e 67 |d */../*| drawing|
|00000a80| 20 61 6e 64 20 6d 6f 76 | 69 6e 67 20 74 68 65 20 | and mov|ing the |
|00000a90| 63 6f 6c 6f 72 20 69 63 | 6f 6e 20 2a 2f 0d 0d 09 |color ic|on */...|
|00000aa0| 0d 09 66 6f 72 28 74 69 | 63 6b 49 6e 64 65 78 20 |..for(ti|ckIndex |
|00000ab0| 3d 20 30 3b 20 74 69 63 | 6b 49 6e 64 65 78 20 3c |= 0; tic|kIndex <|
|00000ac0| 20 4d 41 58 5f 53 45 43 | 4f 4e 44 53 3b 20 74 69 | MAX_SEC|ONDS; ti|
|00000ad0| 63 6b 49 6e 64 65 78 2b | 2b 29 20 7b 0d 09 09 2f |ckIndex+|+) {.../|
|00000ae0| 2a 20 54 68 69 73 20 69 | 73 20 77 68 65 72 65 20 |* This i|s where |
|00000af0| 74 6f 20 73 74 61 72 74 | 20 64 72 61 77 69 6e 67 |to start| drawing|
|00000b00| 20 74 68 65 20 63 6f 6c | 6f 72 20 69 63 6f 6e 2a | the col|or icon*|
|00000b10| 2f 0d 09 09 70 6c 6f 74 | 4c 6f 63 61 74 69 6f 6e |/...plot|Location|
|00000b20| 2e 68 20 3d 20 31 30 30 | 3b 0d 09 09 70 6c 6f 74 |.h = 100|;...plot|
|00000b30| 4c 6f 63 61 74 69 6f 6e | 2e 76 20 3d 20 31 30 30 |Location|.v = 100|
|00000b40| 3b 0d 09 09 66 72 61 6d | 65 43 6f 75 6e 74 20 3d |;...fram|eCount =|
|00000b50| 20 30 3b 0d 09 09 62 65 | 66 6f 72 65 54 69 63 6b | 0;...be|foreTick|
|00000b60| 73 20 3d 20 2a 74 69 63 | 6b 73 3b 0d 09 09 77 68 |s = *tic|ks;...wh|
|00000b70| 69 6c 65 28 28 2a 74 69 | 63 6b 73 20 2d 20 62 65 |ile((*ti|cks - be|
|00000b80| 66 6f 72 65 54 69 63 6b | 73 29 20 3c 20 36 30 29 |foreTick|s) < 60)|
|00000b90| 20 7b 0d 09 0d 09 09 09 | 2f 2a 20 75 70 64 61 74 | {......|/* updat|
|00000ba0| 65 20 74 68 65 20 6c 6f | 63 61 74 69 6f 6e 20 6f |e the lo|cation o|
|00000bb0| 66 20 74 68 65 20 69 63 | 6f 6e 20 2a 2f 0d 09 09 |f the ic|on */...|
|00000bc0| 09 70 6c 6f 74 4c 6f 63 | 61 74 69 6f 6e 2e 76 20 |.plotLoc|ation.v |
|00000bd0| 2b 3d 20 76 44 65 6c 74 | 61 3b 0d 09 09 09 70 6c |+= vDelt|a;....pl|
|00000be0| 6f 74 4c 6f 63 61 74 69 | 6f 6e 2e 68 20 2b 3d 20 |otLocati|on.h += |
|00000bf0| 68 44 65 6c 74 61 3b 0d | 09 09 09 2f 2a 20 54 68 |hDelta;.|.../* Th|
|00000c00| 69 73 20 66 6f 72 63 65 | 73 20 75 73 20 74 6f 20 |is force|s us to |
|00000c10| 73 74 61 79 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |stay on |the scre|
|00000c20| 65 6e 20 61 6e 64 20 70 | 72 65 76 65 6e 74 20 62 |en and p|revent b|
|00000c30| 75 73 20 65 72 72 6f 72 | 73 20 2a 2f 0d 09 09 09 |us error|s */....|
|00000c40| 69 66 28 21 50 74 49 6e | 52 65 63 74 28 70 6c 6f |if(!PtIn|Rect(plo|
|00000c50| 74 4c 6f 63 61 74 69 6f | 6e 2c 26 73 63 72 65 65 |tLocatio|n,&scree|
|00000c60| 6e 52 65 63 74 29 29 20 | 7b 0d 09 09 09 09 76 44 |nRect)) |{.....vD|
|00000c70| 65 6c 74 61 20 3d 20 2d | 76 44 65 6c 74 61 3b 09 |elta = -|vDelta;.|
|00000c80| 2f 2a 20 73 77 61 70 20 | 74 68 65 20 64 65 6c 74 |/* swap |the delt|
|00000c90| 61 73 20 74 6f 20 62 6f | 75 6e 63 65 20 6f 66 20 |as to bo|unce of |
|00000ca0| 63 6f 72 6e 65 72 20 2a | 2f 0d 09 09 09 09 68 44 |corner *|/.....hD|
|00000cb0| 65 6c 74 61 20 3d 20 2d | 68 44 65 6c 74 61 3b 0d |elta = -|hDelta;.|
|00000cc0| 09 09 09 7d 0d 09 0d 09 | 09 09 2f 2a 20 64 72 61 |...}....|../* dra|
|00000cd0| 77 20 74 68 65 20 69 63 | 6f 6e 20 2a 2f 0d 09 09 |w the ic|on */...|
|00000ce0| 09 0d 09 09 09 44 69 72 | 65 63 74 50 6c 6f 74 43 |.....Dir|ectPlotC|
|00000cf0| 6f 6c 6f 72 49 63 6f 6e | 28 28 6c 6f 6e 67 20 2a |olorIcon|((long *|
|00000d00| 29 2a 63 6f 6c 6f 72 49 | 63 6f 6e 48 61 6e 64 6c |)*colorI|conHandl|
|00000d10| 65 2c 20 0d 09 09 09 09 | 09 09 6d 61 69 6e 73 63 |e, .....|..mainsc|
|00000d20| 72 65 65 6e 50 69 78 4d | 61 70 2c 20 70 6c 6f 74 |reenPixM|ap, plot|
|00000d30| 4c 6f 63 61 74 69 6f 6e | 2e 76 2c 20 70 6c 6f 74 |Location|.v, plot|
|00000d40| 4c 6f 63 61 74 69 6f 6e | 2e 68 29 3b 0d 09 09 09 |Location|.h);....|
|00000d50| 66 72 61 6d 65 43 6f 75 | 6e 74 2b 2b 3b 0d 09 09 |frameCou|nt++;...|
|00000d60| 09 2f 2a 20 74 68 69 73 | 20 77 61 73 20 6e 6f 74 |./* this| was not|
|00000d70| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 74 69 6d | part of| the tim|
|00000d80| 69 6e 67 20 63 6f 64 65 | 2c 20 62 75 74 20 2a 2f |ing code|, but */|
|00000d90| 0d 09 09 09 2f 2a 20 49 | 20 77 61 6e 74 20 74 6f |..../* I| want to|
|00000da0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 62 61 69 6c | be able| to bail|
|00000db0| 20 6f 75 74 20 65 61 72 | 6c 79 20 2a 2f 0d 09 09 | out ear|ly */...|
|00000dc0| 09 69 66 28 42 75 74 74 | 6f 6e 28 29 29 20 45 78 |.if(Butt|on()) Ex|
|00000dd0| 69 74 54 6f 53 68 65 6c | 6c 28 29 3b 0d 09 09 7d |itToShel|l();...}|
|00000de0| 0d 09 09 74 69 63 6b 54 | 61 62 6c 65 5b 74 69 63 |...tickT|able[tic|
|00000df0| 6b 49 6e 64 65 78 5d 20 | 3d 20 66 72 61 6d 65 43 |kIndex] |= frameC|
|00000e00| 6f 75 6e 74 3b 0d 09 7d | 0d 09 0d 09 2f 2a 20 73 |ount;..}|..../* s|
|00000e10| 68 6f 77 20 74 68 65 20 | 61 76 65 72 61 67 65 20 |how the |average |
|00000e20| 6e 75 6d 62 65 72 20 6f | 66 20 66 72 61 6d 65 73 |number o|f frames|
|00000e30| 20 70 65 72 20 73 65 63 | 6f 6e 64 20 66 6f 72 20 | per sec|ond for |
|00000e40| 4d 41 58 5f 53 45 43 4f | 4e 44 53 20 73 65 63 6f |MAX_SECO|NDS seco|
|00000e50| 6e 64 73 20 2a 2f 0d 23 | 69 66 6e 64 65 66 20 54 |nds */.#|ifndef T|
|00000e60| 48 49 4e 4b 5f 43 09 0d | 09 53 68 6f 77 52 65 73 |HINK_C..|.ShowRes|
|00000e70| 75 6c 74 28 20 41 76 65 | 72 61 67 65 54 61 62 6c |ult( Ave|rageTabl|
|00000e80| 65 28 74 69 63 6b 54 61 | 62 6c 65 2c 4d 41 58 5f |e(tickTa|ble,MAX_|
|00000e90| 53 45 43 4f 4e 44 53 29 | 20 29 3b 0d 23 65 6e 64 |SECONDS)| );.#end|
|00000ea0| 69 66 0d 09 09 0d 09 43 | 6c 6f 73 65 57 69 6e 64 |if.....C|loseWind|
|00000eb0| 6f 77 28 64 69 72 65 63 | 74 57 69 6e 64 6f 77 29 |ow(direc|tWindow)|
|00000ec0| 3b 0d 09 43 6c 6f 73 65 | 50 6f 72 74 28 28 47 72 |;..Close|Port((Gr|
|00000ed0| 61 66 50 74 72 29 26 6b | 69 6c 6c 4d 65 6e 75 42 |afPtr)&k|illMenuB|
|00000ee0| 61 72 29 3b 0d 09 44 72 | 61 77 4d 65 6e 75 42 61 |ar);..Dr|awMenuBa|
|00000ef0| 72 28 29 3b 0d 09 0d 7d | 00 00 00 00 00 00 00 00 |r();...}|........|
|00000f00| 00 00 01 00 00 00 01 8e | 00 00 00 8e 00 00 00 52 |........|.......R|
|00000f10| 72 61 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |raw.h>.#|include |
|00000f20| 3c 51 44 4f 66 66 73 63 | 72 65 65 6e 2e 68 3e 0d |<QDOffsc|reen.h>.|
|00000f30| 08 42 6c 61 73 74 6f 2e | 63 00 02 00 00 00 54 45 |.Blasto.|c.....TE|
|00000f40| 58 54 4d 50 53 20 01 00 | 00 68 00 00 00 00 00 00 |XTMPS ..|.h......|
|00000f50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 68 00 00 |..TEXTMP|S ...h..|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 a5 cf 18 76 00 00 | 0e 78 00 00 01 e0 50 72 |.....v..|.x....Pr|
|00000f80| 6f 6a 65 63 74 49 6e 66 | 6f 0e 55 6e 6d 6f 75 6e |ojectInf|o.Unmoun|
|00000f90| 74 50 72 6f 6a 65 63 74 | 07 43 68 65 63 6b 49 6e |tProject|.CheckIn|
|00000fa0| 08 43 68 65 63 6b 4f 75 | 74 07 42 72 6f 77 73 65 |.CheckOu|t.Browse|
|00000fb0| 72 07 42 72 6f 77 73 65 | 72 08 70 72 6f 6a 6d 64 |r.Browse|r.projmd|
|00000fc0| 65 66 04 4d 61 69 6e 04 | 4d 61 69 6e 04 4d 61 69 |ef.Main.|Main.Mai|
|00000fd0| 6e 04 4d 61 69 6e 04 69 | 6e 69 74 06 65 64 69 74 |n.Main.i|nit.edit|
|00000fe0| 69 6f 06 64 69 61 6c 6f | 67 08 52 65 73 69 64 65 |io.dialo|g.Reside|
|00000ff0| 6e 74 08 43 6f 6d 6d 61 | 6e 64 73 05 53 68 65 6c |nt.Comma|nds.Shel|
|00001000| 00 00 00 1c 00 01 00 1a | 00 00 0d 37 00 7a 00 7f |........|...7.z..|
|00001010| fa cc 00 00 0b 66 72 61 | 6d 65 43 6f 75 6e 74 20 |.....fra|meCount |
|00001020| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 00 00 |...H..Co|urier...|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 06 | 00 04 00 29 00 48 02 74 |........|...).H.t|
|00001050| 02 5e 00 29 00 48 02 74 | 02 5e a7 26 a5 4d 00 00 |.^.).H.t|.^.&.M..|
|00001060| 02 38 00 00 02 38 00 00 | 00 00 01 00 00 00 00 1e |.8...8..|........|
|00001070| 00 29 00 48 02 74 02 5e | 00 29 00 48 02 74 02 5e |.).H.t.^|.).H.t.^|
|00001080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001090| 01 00 00 00 01 8e 00 00 | 00 8e 00 00 00 52 00 50 |........|.....R.P|
|000010a0| b5 68 21 0e 00 00 00 1c | 00 52 00 01 4d 50 53 52 |.h!.....|.R..MPSR|
|000010b0| 00 01 00 12 44 54 56 55 | 00 00 00 2a 03 ed ff ff |....DTVU|...*....|
|000010c0| 00 00 00 20 00 00 00 00 | 03 f0 ff ff 00 00 00 6c |... ....|.......l|
|000010d0| 00 56 b1 a0 3e 20 ff ff | 00 00 00 00 00 00 00 00 |.V..> ..|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+